php forum
php mysql forum
php mysql smarty
 
Page 1 of 5 1 2 3 4 5 >
Topic Options
#232474 - 01/10/03 12:03 PM [6.2] My Cookies utility
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Updated for UBB.threads 6.2 <br /> <br />This will display your cookies and allow you to expire them. When a user is having problems that seem cookie related have them use this to clear their cookies. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Place it in your ubbthreads directory and provide a link to the mycookies.php script. <br /> <br />DEMO: Here at threadsdev <br /> <br /> <br />Update (January 13, 2003): With Carl's more informative instructions/information I decided to add in language file support. The zip includes the english language file "mycookies.lang.php" which needs to be placed in all language directories. Translate as needed. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Updated on January 19, 2003 to include German language file. Thanks Carl/Astaran <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Updated on January 26, 2003 to hopefully work on all installs. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Updated on January 26 (hours later), 2003 to hopefully work on all installs again. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br /> <br />If you do translate the language file please post your translation so I can add it to the zip file for others. Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />


Attachments
64372-mycookies.6.2.1.zip (179 downloads)



Edited by JoshPet (02/16/03 05:13 AM)
_________________________
~Dave
ChattersOnline.com

Top
#232475 - 01/10/03 01:44 PM Re: [6.2] Cookie Pal utility [Re: sjsaunders]
Turbosport Offline
Member

Registered: 09/08/01
Posts: 157
Loc: Kent, UK.
LOL OK What do you think is wrong with this Dave <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />http://bbs.turbosport.co.uk/index.php?paction=cookies<br /><br />http://bbs.turbosport.co.uk/pals/cookiepal.php
_________________________
Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!

Top
#232476 - 01/10/03 01:46 PM Re: [6.2] Cookie Pal utility [Re: groov_richmond]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Guess I should rename this. It's not a "pal" for IIP. It's stand alone. Place it in your ubbthreads directory. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232477 - 01/10/03 01:49 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok renamed it. Should be less confusion now. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232478 - 01/10/03 02:18 PM Re: [6.2] Cookie Pal utility [Re: groov_richmond]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I had thought about adding this into the IIP package once or twice before. I'll probably do so sometime tonight. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232479 - 01/10/03 02:21 PM Re: [6.2] Cookie Pal utility [Re: sjsaunders]
Turbosport Offline
Member

Registered: 09/08/01
Posts: 157
Loc: Kent, UK.
cheers Dave working now <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Should have looked at the script <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!

Top
#232480 - 01/10/03 02:40 PM Re: [6.2] Cookie Pal utility [Re: groov_richmond]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That's good. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I broke it though when I renamed the file. I forgot to set the location it returns to when expiring cookies to the new name. All fixed now. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232481 - 01/11/03 04:01 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
How does this differ from the earlier version that seems to still work?
_________________________
mike
www.esportbike.com

Top
#232482 - 01/11/03 09:07 AM Re: [6.2] My Cookies utility [Re: alsalmicom]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Incoming variable values are pulled using the get_input function in .threads 6.2 so register globals can be turned off for better security. Other possible cookie paths are used in addition to the configured path to cover cookies that may have been inadvertantly set with the wrong paths during setup or maintenance of the forums. Depending on your setup your old script will NOT delete your w3t_visit cookie in .threads 6.2. Cookie values are decoded to show their exact value for curiosity's sake as well.<br /><br />I had to look to see myself and while I was at it I found another error. I had the form posting to the old cookiepal.php script and not the new name. I also put the new table wrappers of .threads 6.2 to use and made the display validate XHTML 1.0 transitional as well. I'll upload it again after this post.<br /><br />This is how it differs. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232483 - 01/11/03 01:30 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This script is one of the best threads add ons. It should be standard. Thanks Dave.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232484 - 01/11/03 02:40 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Once again you rule! <img src="/forum/images/graemlins/cool.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#232485 - 01/13/03 05:18 PM Re: [6.2] My Cookies utility [Re: jacksonm99]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Thank you for this cool tool. <br /> <br />I thought that giving some more explanation to the users would help, so I extended your feedback-messages a little: <br /> <br />echo "<tr><td class=\"darktable\" colspan=\"2\"><form method=\"post\" action=\"{$config['phpurl']}/mycookies.php\"><input type=\"submit\" name=\"submit\" value=\"Expire Cookies\" class=\"buttons\" /><input type=\"hidden\" name=\"doExpire\" value=\"1\" /><input type=\"hidden\" name=\"Cat\" value=\"$Cat\" /></form> <br /> [:"brown"]<p>Expiring (deleting) your board's cookies might be useful if you suspect that they are damaged and the board is malfunctioning.</p><p>Expiring those cookies will do NO harm at all, but this will log you out of the board. - Once you login and start using the board again, new fresh cookies will be set automatically.</p>[/] <br /></td></tr>$tbclose"; <br /> <br />echo "<tr><td align=\"left\" class=\"lighttable\" colspan=\"2\">You have no current cookies.[:"brown"] - This will log you out. Once you login and start using the board again, new cookies will be set automatically. [/]</td></tr>"; <br />


Edited by caymuc (01/13/03 05:23 PM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#232486 - 01/13/03 05:52 PM Re: [6.2] My Cookies utility [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I'll get your extra information into this yet tonight. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232487 - 01/13/03 09:23 PM Re: [6.2] My Cookies utility [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I just added in your extra information in the form of a language file. I'm hoping that you will supply a German version of the language file so I can package it up with the zip.<br /><br />If anyone else can provide other languages please post the translated language files here and I'll update the zip with them. Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232488 - 01/13/03 10:22 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Dslam Offline
Member

Registered: 06/05/01
Posts: 246
Loc: USA
Wow more good stuff dave . Thanks man . <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#232489 - 01/13/03 10:34 PM Re: [6.2] My Cookies utility [Re: interforos]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Your welcome <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232490 - 01/15/03 03:02 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
[]I'm hoping that you will supply a German version [/] <br /> <br />OK, I'll try: <br /> <br /> [:"#666666"]<p>Expiring (deleting) your board's cookies might be useful if you suspect that they are damaged and the board is malfunctioning.</p> <br /><p>Expiring those cookies will do NO harm at all, but this will log you out of the board. - Once you login and start using the board again, new fresh cookies will be set automatically.</p> [/] <br /> <br /></p><p>Das L&ouml;schen der Forum-Cookies kann z.B. sinnvoll sein, wenn das Forum nicht wie erwartet funktioniert und Sie vermuten, dass es vielleicht an besch&auml;digten Cookies liegen k&ouml;nnte.</p> <br /><p>Das L&ouml;schen dieser Cookies richtet KEINEN Schaden an aber Sie werden aus dem Forum abgemeldet. Sobald Sie sich erneut anmelden, werden automatisch neue, "frische" Cookies im Browser angelegt.</p> <br /> <br /> [:"#666666"]You have no current cookies. - This will log you out. Once you login and start using the board again, new cookies will be set automatically. [/] <br /> <br />Sie haben keine Forum-Cookies (mehr) in Ihrem Browser. - Sie werden nun aus dem Forum abgemeldet. Sobald Sie sich erneut anmelden, werden automatisch neue Cookies im Browser angelegt. <br />


Edited by caymuc (01/15/03 03:05 PM)
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#232491 - 01/15/03 06:14 PM Re: [6.2] My Cookies utility [Re: rodrigo1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks Carl but would you mind downloading the zip and creating a german language file based on the english one that's included and attaching it here? Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232492 - 01/16/03 02:39 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I created the german language file based on Carls suggestions. <br />See attached file.


Attachments
65164-mycookies.lang.txt (49 downloads)

_________________________
Running a community? -> Keep informed and take it to the next level

Top
#232493 - 01/16/03 03:01 AM Re: [6.2] My Cookies utility [Re: -Fusion-]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Just noticed that $user has no value in this script. Since this page doesn't care about user authentification i'd suggest to replace send_header param $user with '0'.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#232494 - 01/19/03 05:43 AM Re: [6.2] My Cookies utility [Re: interforos]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
Amazing hack <br />This has to be standard <br /> <br />Thanks Dave

Top
#232495 - 01/19/03 08:12 AM Re: [6.2] My Cookies utility [Re: -Fusion-]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks Astaran. I somehow missed your post here. I'll get this in the main zip right now. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232496 - 01/19/03 08:13 AM Re: [6.2] My Cookies utility [Re: -Fusion-]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I added a call to auth in so that the $user array is filled if being viewed by a registered user. Otherwise a call to auth is made in the send_header function when there is no $user information. <br /> <br />Thanks for pointing that out Astaran. <img src="/forum/images/graemlins/smile.gif" alt="" />


Edited by JustDave (01/19/03 08:30 AM)
_________________________
~Dave
ChattersOnline.com

Top
#232497 - 01/25/03 12:32 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
Hi,<br />I went an added this much needed utility, however it is not functioning for me. I attempted this on 3 separate forums I run, all on different boxes. I had a couple of other users visit the url and it did not delete our cookies or log us out. Not sure if it has some restrictions?<br />I would love to get this thing functioning <img src="/forum/images/graemlins/smile.gif" alt="" /><br />Best Wishes,<br />Charlie

Top
#232498 - 01/25/03 01:39 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This script needs to be placed in your ubbthreads directory to work. I'm not sure why it wouldn't work otherwise. What is the URL to your forum with this script in it?
_________________________
~Dave
ChattersOnline.com

Top
#232499 - 01/25/03 01:46 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
It's working great for us Dave. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />As Dave said, make sure the "mycookies.php" file is in your regular .threads directory, and the "mycookies.lang.php" file is in your "languages/english/" folder.<br /><br />I actually added a little blurb about it on the logout page, and put the link there. It wouldn't matter where the link is though, as long as you had the URL to the page correct.
_________________________
[:"red"]Lisa[/]

Top
#232500 - 01/25/03 02:05 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
It is in the correct directory and stuff, just puzzled why it will not function.<br />http://www.aaca.org/ubbthreads/mycookies.php<br />It is on a Windows server, not sure if this is related.<br />Thanks for your reply!<br />Charlie

Top
#232501 - 01/25/03 11:52 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Off hand I can't see why it wouldn't work. It's a really simple script. <img src="/forum/images/graemlins/crazy.gif" alt="" /> Are the server times messed up? Perhaps the expiration time needs to be set further back?
_________________________
~Dave
ChattersOnline.com

Top
#232502 - 01/26/03 11:58 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
has me really puzzled as well as I have it working on a few of our other forums, but on completely different boxes. The big difference is that they are all running Linux and this box is a Windows server. Times are all ok as well and I will try adjusting the expiration time and let you know how that goes.<br />Best Wishes,<br />Charlie

Top
#232503 - 01/26/03 05:43 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I just updated the script and the language files. Install them and let me know how it goes. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232504 - 01/26/03 06:15 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
Thanks for the update, unfortunately it still will not work with this site <img src="/forum/images/graemlins/frown.gif" alt="" /><br />I played around with the expiration time, manually deleted all my cookies a number of times and still not a go.<br />Do you know if anyone else using this on a Windows Server?<br />Not sure if that is the root of this problem or not.<br />Best Wishes,<br />Charlie

Top
#232505 - 01/26/03 07:25 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Can you manually log out from the forum on your windows machine? I have one idea left... lol
_________________________
~Dave
ChattersOnline.com

Top
#232506 - 01/26/03 07:37 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok scratch that. I'm fresh out of ideas at the moment with this... <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Do you have a test login I can use to view this on your windows machine with?
_________________________
~Dave
ChattersOnline.com

Top
#232507 - 01/26/03 07:56 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok I adjusted the script again. This time not only are we expiring the cookie but also setting it's value to an empty string. Maybe this is needed on a windows box? That's how .threads logs a user out so if that works this should work? LoL I hope.
_________________________
~Dave
ChattersOnline.com

Top
#232508 - 01/27/03 12:40 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
Thanks again!<br />I just updated the script, manually dumped all my cookies to start off fresh, logged in and then tried the script and still a no go <img src="/forum/images/graemlins/frown.gif" alt="" />.<br />Do you still need that test account? Looks like you registered already, but need to confirm it. <br />Best Wishes,<br />Charlie

Top
#232509 - 01/28/03 02:37 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Yeah I registered but I used my garbage can email address so I have no way of confirming. I quit using my regular email address for checking sites as I get email from the admins that I don't care for but now this can be opted out of. I really have no idea why it's not working though. Maybe something is causing the cookie names to be wrong during their expiration.
_________________________
~Dave
ChattersOnline.com

Top
#232510 - 01/28/03 06:05 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
Not a problem, I just approved it so as long as you chose your initial password, you should be able to login and give the mycookies.php a whirl to see what is happening if you still want to take a look at it further.<br /><br />I really do appreciate your time with this among all your other projects! Looking forward to your Pro release of IIP <img src="/forum/images/graemlins/cool.gif" alt="" />

Top
#232511 - 02/01/03 12:00 AM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I played around with a few ideas and have yet another modified version I'll be uploading tomorrow morning. What ever is going on it's got to be something simple... (and overlooked) LoL <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232512 - 02/05/03 07:23 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
Thanks again, but unfortunately it still does not work on this forum. Works great on our other forums, but this one is really stubborn.<br />Best Wishes,<br />Charlie

Top
#232513 - 02/05/03 09:31 PM Re: [6.2] My Cookies utility [Re: MarkM]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
I wanted to post and mention how much I love this hack. I've always had lots of cookie problems whenever I have to "login as user", but now I can easily dump the cookies and it fixes the problem immediately. Much easier than manually deleting my cookies, closing the browser, etc. Very handy!

Top
#232514 - 02/05/03 10:17 PM Re: [6.2] My Cookies utility [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Users at one of my forums... report that the site is faster for them after they use the cookie utility. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232515 - 02/06/03 02:30 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
flumpydog Offline
Newbie

Registered: 09/10/01
Posts: 18
could this problem I am experiencing be related to the custom cookie prefix?<br />Best Wishes,<br />Charlie

Top
#232516 - 02/06/03 02:34 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
It shouldn't. I have used this with several different cookie prefixes at the same time and it cleared them all. When the cookie names/values are displayed are the names correct? Those are the exact names that get expired. If I could get ftp access to your site I could test a couple ideas I have but honestly I can't see why it's not working at this point... <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232517 - 02/07/03 01:32 AM Calling all Windows Boxes... [Re: sjsaunders]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Get Linux... LoL no <img src="/forum/images/graemlins/wink.gif" alt="" /> j/k (well not really but don't want to get into any debates) LoL<br /><br />Anyhow... If your running your site from a windows machine would you mind installing this cookie script and letting me know if it works? Thanks for any input/help you can give. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232518 - 02/07/03 02:03 AM Re: Calling all Windows Boxes... [Re: sjsaunders]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Didn't I see where somebody put a link into the login screen? Can't seem to find that thread on the hack to place the link. Love this tool.. but want to make it easier for them to find.

Top
#232519 - 02/07/03 02:05 AM Re: Calling all Windows Boxes... [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I added a link into the generic error message. My "how to" and advice is here.<br /><br />That helped alot.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232520 - 02/16/03 06:23 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This is a MUST HAVE.<br /><br />If you want to see a demo... it's installed here at threadsdev. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232521 - 02/17/03 04:47 AM Re: [6.2] My Cookies utility [Re: jbiz]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
I think I found a failure in this hack.<br /><br />Line:<br />$ubbt_language = ${$config['cookieprefix']."w3t_language"};<br />seems to be wrong cause w3t_language is only the tables name if you did not change the preffix.<br /><br />I am using cf as prefix therefore my table is called: cf_languages.<br /><br />Check out http://www.clanforums.com/mycookies.php for the (I think wrong) output. Can you please check if I am right and then please correct it?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#232522 - 02/17/03 09:12 AM Re: [6.2] My Cookies utility [Re: edr]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
No, it's not an error. That's the way it's supposed to be. Also, your link 404's.
_________________________
~Dave
ChattersOnline.com

Top
#232523 - 02/17/03 09:34 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
[]JustDave said:<br />No, it's not an error. That's the way it's supposed to be. Also, your link 404's. [/]<br /><br />Sorry the link is:<br />http://www.clanforums.com/ubbthreads/mycookies.php<br /><br />Can you take a look again?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#232524 - 02/17/03 09:36 AM Re: [6.2] My Cookies utility [Re: edr]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The script is correct. No need to look but I did. I don't have any cookies so there were none displayed. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232525 - 02/17/03 09:45 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
The output is for me (for example!)<br /><br />Cookie Name:<br />cfw3t_language<br /><br />Cookie Value:<br />English<br /><br />I am wondering why is cfw3t_language cause it should be cf_language. I thought the line I posted here before is the problem. What do you think?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#232526 - 02/17/03 10:10 AM Re: [6.2] My Cookies utility [Re: edr]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This is correct:<br /><br />cfw3t_language<br /><br /><br />This is not correct:<br /><br />cf_language<br /><br /><br /><br />The line of code you posted is correct. There is no error.<br /><br />I think there is no problem here. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232527 - 02/17/03 10:17 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I too get no error's when visiting site. I of course have no cookies.<br /><br />So I signed up and tried it out. It expires my cookie fine and of course I am logged out.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#232528 - 02/17/03 11:55 AM Re: [6.2] My Cookies utility [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah the cookies always have the prefix of w3t_ the cookie prefix is differen than the database table prefix. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232529 - 02/17/03 03:48 PM Re: [6.2] My Cookies utility [Re: Daine]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Then everything is right and working for me <img src="/forum/images/graemlins/laugh.gif" alt="" /> <br /><br />Only wondered about this w3t_ <img src="/forum/images/graemlins/laugh.gif" alt="" /> <img src="/forum/images/graemlins/laugh.gif" alt="" /> <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#232530 - 02/17/03 06:45 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Erik_Rana Offline
Newbie

Registered: 10/18/00
Posts: 22
Loc: Sweden
Is it possible to get this great utillity <img src="/forum/images/graemlins/laugh.gif" alt="" /> to work on a 6.1 UBBThreads forum?<br /><br />When i tested i got <br />
Code:
 <br />Fatal error: Call to undefined function: get_input() in /&lt;path to my installation&gt;/ubbthreads/mycookies.php on line 37<br /><br /> 
<br /> <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
"Do not meddle in the affairs of sysadmins, for they can make your life miserable by doing nothing." <img src="/threads/php/images/graemlins/wink.gif" alt="" /> Unknown

Top
#232531 - 02/17/03 06:48 PM Re: [6.2] My Cookies utility [Re: slacker_100]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I think this will work for you. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232532 - 02/17/03 06:49 PM Re: [6.2] My Cookies utility [Re: slacker_100]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I may be wrong but in 6.1 the globals were artificially registered by .threads so you may be able to just comment out the get_input line and have it work. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232533 - 02/17/03 07:09 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Erik_Rana Offline
Newbie

Registered: 10/18/00
Posts: 22
Loc: Sweden
Comment out the whole line? <br />
Code:
// $doExpire = get_input("doExpire","post"); 
<br />Or just remove get_input ? <br /> <br />Update..tested, does not seem to work <img src="/forum/images/graemlins/frown.gif" alt="" /> but JoshPet found one that works for me <img src="/forum/images/graemlins/laugh.gif" alt="" /> <br />So it might come to use when we upgrade our forum <img src="/forum/images/graemlins/laugh.gif" alt="" />


Edited by Erik_Rana (02/17/03 07:18 PM)
_________________________
"Do not meddle in the affairs of sysadmins, for they can make your life miserable by doing nothing." <img src="/threads/php/images/graemlins/wink.gif" alt="" /> Unknown

Top
#232534 - 02/17/03 07:18 PM Re: [6.2] My Cookies utility [Re: Daine]
Erik_Rana Offline
Newbie

Registered: 10/18/00
Posts: 22
Loc: Sweden
Yes <img src="/forum/images/graemlins/laugh.gif" alt="" /><br />Thanks!
_________________________
"Do not meddle in the affairs of sysadmins, for they can make your life miserable by doing nothing." <img src="/threads/php/images/graemlins/wink.gif" alt="" /> Unknown

Top
#232535 - 02/17/03 08:48 PM Re: [6.2] My Cookies utility [Re: slacker_100]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'm glad Josh found the older version. I wasn't sure if it was around here or not. It's good to hear it's working for you. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232536 - 02/19/03 03:12 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
I have an embarrassingly newbish question to ask here . . . I've installed this mod, and everything seems to function as it should. However, I'm a bit lost (I have NO doubt whatsoever that if/when this is answered, and I see it, I'll go "Oh, duh, of course, it's so obvious" and feel like a heel) as to where a good place to make this file accessible to users/linked would be, and what code in which (template?) file(s) to use for there to be a ready link to it outside of an actual post.

Top
#232537 - 02/19/03 03:54 PM Re: [6.2] My Cookies utility [Re: astre]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I placed a link to it in the footer here. (ubbt_footer.tmpl)<br /><br />You could also place it in the FAQ section or as a link in a sticky post of a "help" forum. It could also be added to the navigation bar (ubbt_registerednav.tmpl, ubbt_unregisterednav.tmpl). <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232538 - 02/19/03 04:05 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
[] I placed a link to it in the footer here. (ubbt_footer.tmpl) [/]<br />Ahh, that works. Very convenient and almost sneaky, I didn't even notice it down there until my attention was directed to it.<br /><br />Thanks for the suggestion.

Top
#232539 - 02/19/03 05:04 PM Re: [6.2] My Cookies utility [Re: astre]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he.....<br />it probable didn't appear until you asked. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />But I like it! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232540 - 02/19/03 05:06 PM Re: [6.2] My Cookies utility [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL actually it's been there since Sunday. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232541 - 02/19/03 05:20 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL <br />Maybe I don't spend enough time here to notice. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Good place to put it. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232542 - 02/27/03 11:35 PM Re: [6.2] My Cookies utility [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
If anyone wants it, I created this []http://www.ourfreerein.com/ubbthreads/cookiess.gif[/] <br /> <br />I placed this right above the footer and below the Main Configuration part in the MY HOME section. This is where I noticed my users usually get stuck when their cookies go bad. <br /> <br />I can attach the code with the graphics if wanted. <br /> <br /> <br />-peter <br /> <br /> <br />(Just noticed my typo in there too!lol!)

Top
#232543 - 02/28/03 02:13 AM Re: [6.2] My Cookies utility [Re: adrienne48]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Yepp this is looking nice. Post the info how you did it here, I am sure that someone might find it useful
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#232544 - 02/28/03 09:15 AM Error in DEMO [Re: sjsaunders]
Slawek_L Offline
Enthusiast

Registered: 01/28/03
Posts: 364
Loc: Poland, Warsaw
Warning: Unable to access /home/virtual/threadsdev.com/var/www/html/threads/php/languages/english/mycookies.lang.php in /home/virtual/site2/fst/var/www/html/threads/php/mycookies.php on line 30<br />
_________________________
[]http://www.mb.org.pl/forum/images/graemlins/icon_astro.gif[/] MB Klub Polska
[b]& Orlen-Team

Top
#232545 - 02/28/03 10:23 AM Re: Error in DEMO [Re: Dawg_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Make sure the language file is readable and that it exists. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#232546 - 02/28/03 11:04 AM Re: [6.2] My Cookies utility [Re: edr]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
In myhome.tmpl find <br /> <br />
Code:
 &lt;br /&gt; <br />UBBTPRINT; <br /> <br />/* UBBTREMARK */ ?&gt; <br /> 
<br /> <br /> <br />Above that ADD: <br />
Code:
 &lt;br&gt;&lt;br&gt; <br />$tbopen <br />&lt;td class="lighttable"&gt; <br />&lt;img align="middle" src="{$config['images']}/utilities.gif" alt="!" /&gt; <br />Are you stuck?  Is something not working?  Use this utility! A quick fix for most problems! <br />(You'll have to re-login though.) <br />&lt;/td&gt;&lt;td class="lighttable" align="center"&gt; <br /> &lt;img align="middle" src="{$config['images']}/utilities.gif" alt="{$ubbt_lang['EDIT_TEXT']}" /&gt; <br /> &lt;a href="{$config['phpurl']}/cookiepal.php"&gt; <br />Fix! <br />&lt;/a&gt; <br />&lt;/td&gt; <br />&lt;/tr&gt; <br />$tbclose 
<br /> <br />You should place the utilities.gif file in the images folder, and place the cookie utility file <br />in your main folder of threads, with ubbthreads.php. <br /> <br />The image I used is attached. <br /> <br />


Attachments
71314-utilities.gif (97 downloads)


Top
#232547 - 03/01/03 03:14 PM Re: [6.2] My Cookies utility [Re: adrienne48]
jonlevine Offline
Power User

Registered: 02/17/03
Posts: 64
Loc: Astoria, NY
I installed the My Cookies script and it seems to work fine except this error shows up over the cookie description:<br /><br />Warning: urldecode() expects parameter 1 to be string, array given in /home/www/thebuzznyc/members/ubbthreads/mycookies.php on line 53<br /><br />Any ideas?

Top
#232548 - 03/01/03 10:36 PM Re: [6.2] My Cookies utility [Re: bhlaws]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I added the cookies link similar to what is on this site. used the board rules mod as my instructions. I had to change the language file too.

Top
#232549 - 05/19/03 12:48 PM Re: [6.2] My Cookies utility [Re: MarkM]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
In the mycookies.php file there is a line at the bottom of the file that looks like this (or close to it):<br /><br />header("Location: {$config['phpurl']}/mycookies.php?Cat=$Cat");<br /><br /><br />Change that line to this:<br /><br /><br />header("Refresh: 0; URL=/mycookies.php?Cat=$Cat");<br /><br /><br /><br /><br />This should work on a windows box too now. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#232550 - 05/20/03 02:56 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
would that require the mycookies.php file to be in the root directory?
_________________________
- Allen wavey
- What Drives You?

Top
#232551 - 05/20/03 03:12 PM Re: [6.2] My Cookies utility [Re: SurfMinister]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The machine I tested it on wouldn't work if I used<br /><br />header("Refresh: 0; URL={$config['phpurl']}/mycookies.php?Cat=$Cat");<br /><br />but that may be because things are sort of "not right" on that machine. (not my doing, btw) lol<br /><br />I have added this type of redirect to the shoutbox scripts using the {$config['phpurl']} and did not have any problems so I would recommend adding it in. I'm actually not sure if it would work otherwise on a machine that "is right"... lol
_________________________
~Dave
ChattersOnline.com

Top
#232552 - 05/20/03 03:18 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
header("Location: {$config['phpurl']}/mycookies.php?Cat=$Cat");<br /><br />should work on all machines if their is no output before that statement.<br />"Location" is part of the http protocol and should work with all standard browsers. Make sure you use a absolute URI as the target. Relative URI will work on most browsers but the RFC specifies that it has to be an absolute one.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#232553 - 05/20/03 03:19 PM Re: [6.2] My Cookies utility [Re: sjsaunders]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
hmm.. maybe removing the / would work, since the file should be in the same directory? Idda know, just lookin, I need to install it and try it out <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#232554 - 05/20/03 04:20 PM Re: [6.2] My Cookies utility [Re: -Fusion-]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
On one windows box, for sure, cookies were not set when using the header("Location: "); redirect. One fix was to generate a transition page with a <meta> refresh tag. Using the header("Refresh: 0; URL= "); solution is easier and cleaner. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />It was a windows machine causing the problem... go figure. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Anyhow... the others that have reported this utility as not working were having problems on windows boxes. (I do believe they all were but I could be wrong)<br /><br /><br /><br />
_________________________
~Dave
ChattersOnline.com

Top
#232555 - 05/21/03 11:07 AM Re: [6.2] My Cookies utility [Re: sjsaunders]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Is "Refresh" a valid HTTP header? If not, shouldn't echo() or print() be used instead of header()?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#232556 - 05/21/03 02:14 PM Re: [6.2] My Cookies utility [Re: joeuser]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
As far as I can tell, no it's not specified. I found some limited discussions on it's use but only as options against header/Location. I'm still going over the specifications though. Perhaps there is an additional header that can be sent with Location to get the same affect?<br /><br />I'm also looking at the fact that no output is supposed to be sent before a header() call. This could be the reason the cookies are not being expired?<br /><br />I guess I'll keep going over this but for now the header/Refresh does seem to work. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
Page 1 of 5 1 2 3 4 5 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks